package updown.domain;

import lombok.Builder;
import lombok.Data;

/**
 * <p>Title: ww.kaixin.downupservice.domain </p>
 * <p>Description:updown: - java 服务 </p>
 *
 * @Author:jiangkaixin
 * @Date:2021/11/3
 * @Version: 1.0
 */
@Data
@Builder
public class ServiceInfo extends BaseEntity{
    private String serviceName;
    // 服务器信息 name 作为区分， 逗号分隔
    private String serverList;

    private String currentVersion;
    private String lastRestartTime;

//    private List<String serverList;

    public ServiceInfo(String serviceName, String serverList, String currentVersion, String lastRestartTime) {
        this.serviceName = serviceName;
        this.serverList = serverList;
        this.currentVersion = currentVersion;
        this.lastRestartTime = lastRestartTime;
    }

    public ServiceInfo() {
    }

    public ServiceInfo(String serviceName, String serverList) {
        this.serviceName = serviceName;
        this.serverList = serverList;
    }
}
